package com.yanfan.energy.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author caijinkang
 * @date 2023年02月02日 10:00
 */
public class SectionBatchedBody {
    private Integer batchId;
    private String batchNumber;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date batchBeginDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date batchEndDate;
    private String batchWorkshop;
    private Integer batchShopId;
    private List<SectionBody> sectionList;

    public SectionBatchedBody() {
    }

    public SectionBatchedBody(Integer batchId, String batchNumber, Date batchBeginDate, Date batchEndDate, String batchWorkshop, Integer batchShopId, List<SectionBody> sectionList) {
        this.batchId = batchId;
        this.batchNumber = batchNumber;
        this.batchBeginDate = batchBeginDate;
        this.batchEndDate = batchEndDate;
        this.batchWorkshop = batchWorkshop;
        this.batchShopId = batchShopId;
        this.sectionList = sectionList;
    }

    @Override
    public String toString() {
        return "SectionBatchedBody{" + "batchId=" + batchId + ", batchNumber='" + batchNumber + '\'' + ", batchBeginDate=" + batchBeginDate + ", batchEndDate=" + batchEndDate + ", batchWorkshop='" + batchWorkshop + '\'' + ", batchShopId=" + batchShopId + ", sectionList=" + sectionList + '}';
    }

    public Integer getBatchShopId() {
        return batchShopId;
    }

    public void setBatchShopId(Integer batchShopId) {
        this.batchShopId = batchShopId;
    }

    public Integer getBatchId() {
        return batchId;
    }

    public void setBatchId(Integer batchId) {
        this.batchId = batchId;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Date getBatchBeginDate() {
        return batchBeginDate;
    }

    public void setBatchBeginDate(Date batchBeginDate) {
        this.batchBeginDate = batchBeginDate;
    }

    public Date getBatchEndDate() {
        return batchEndDate;
    }

    public void setBatchEndDate(Date batchEndDate) {
        this.batchEndDate = batchEndDate;
    }

    public String getBatchWorkshop() {
        return batchWorkshop;
    }

    public void setBatchWorkshop(String batchWorkshop) {
        this.batchWorkshop = batchWorkshop;
    }

    public List<SectionBody> getSectionList() {
        return sectionList;
    }

    public void setSectionList(List<SectionBody> sectionList) {
        this.sectionList = sectionList;
    }
}
